package com.h3c.nem.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.File;
import java.util.Date;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: SdUploadFileDTO
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_upload_file dto实体
 * Version: 1.0
 */
@ApiModel(value="SdUploadFile对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SdUploadFileDTO {


    @ApiModelProperty(value = "文件ID")
    private String fileId;

    @ApiModelProperty(value = "上传人工号")
    private String operatorId;

    @ApiModelProperty(value = "上传人工号姓名")
    private String operatorInfo;

    @ApiModelProperty(value = "业务类型")
    private Integer busiType;

    @ApiModelProperty(value = "文件名称，含扩展名")
    private String fileName;

    @ApiModelProperty(value = "上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="Asia/Shanghai")
    private Date uploadTime;

    @ApiModelProperty(value = "关联业务id")
    private String busiId;

    private File file;

    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
